// 在页面中,使用模块中的数据是 this.$store.state.app.sidebar
// 使用getters获取相对简单 this.$store.getters.sidebar

const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  name: state => state.user.userInfo.username,
  avatar: state => state.user.userInfo.staffPhoto
}
export default getters
